package r21310.chap06.d1123;

public class Stu {
    private String name;
    private int chengji;
    private String num;

    public Stu(String name, int chengji, String num) {
        this.name = name;
        this.chengji = chengji;
        this.num = num;
    }

    @Override
    public String toString() {
        return "Stu{" +
                "name='" + name + '\'' +
                ", chengji=" + chengji +
                ", num=" + num +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChengji() {
        return chengji;
    }

    public void setChengji(int chengji) {
        this.chengji = chengji;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }
}